package give.replay;

import give.comm.Message;

import java.util.Date;

/**
 * Created by IntelliJ IDEA.
 * User: koller
 * Date: Oct 19, 2009
 * Time: 10:05:27 AM
 * To change this template use File | Settings | File Templates.
 */
public class GameEvent implements Comparable<GameEvent> {
    public Date timestamp;
    public Message message;

    public GameEvent(Date timestamp, Message message) {
        this.timestamp = timestamp;
        this.message = message;
    }

    public int compareTo(GameEvent o) {
        return timestamp.compareTo(o.timestamp);
    }
}
